import {axios,get,post,patch,Delete} from './request';


export const ajax = {


  // 发送验证码  http://47.104.209.44:3333/
  // 发送验证码
  sendCaptcha:params=>get('/captcha/sent',params),
  verifyCaptcha:params=>get('/captcha/verify',params),
  sendcaptcha:params=>post("/api/sendcaptcha",params),
  verifycaptcha:params=>post("/api/verifycaptcha",params),
  //测试
  testIndex:params=>get("/api/index",params),
  //注册
  register:params=>post("/api/register",params),
  //登录
  loginusername:params=>post("/api/loginusername",params),
  //获取用户个人信息
  getuserinfo:params=>post("/api/getuserinfo",params),
  //上传头像
  uploadfile:params=>post("/api/uploadfile",params),
  //修改个人信息
  changeinfo:params=>post("/api/changeinfo",params),
  //修改密码
  changepass:params=>post("/api/changepass",params),

  getuserlist:params=>post("/api/getuserlist",params),

  //上传图片
  uploadpicfile:params=>post("/api/uploadpicfile",params),
  books:params=>post("/api/books",params),

  //查询图书列表
  booklist:params=>post("/api/booklist",params)
}